<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<jsp:include page="/common.jsp"></jsp:include>
</head>
<body>
${title }
${toolBar }
<form action="produce/bom?list" id="form">
		<div class="row-fluid">
			<table
				class="table table-striped table-bordered table-condensed  table-hover">
				<thead>
					<tr>
						<td style="width: 5px;"><input type="checkbox" name="ids"
							id="ids" onclick="tb_check()" /></td>
						<th>编号</th>
						<th>产品编号</th>
						<th>产品名称</th>
						<th>产品单位</th>
						<th>产品性质</th>
						<th>是否审核</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="bom" items="${t}">
					<c:if test="${bom.status=='未审核' }">
						<tr class="error">
					</c:if>
					<c:if test="${bom.status=='已审批' }">
						<tr class="success">
					</c:if>
							<td><input type="checkbox" name="ids" value="${bom.id}" /></td>
							<td>${bom.id}</td>
							<td>${bom.materiel.code}</td>
							<td>${bom.materiel.name}</td>
							<td>${bom.materiel.unit }</td>
							<td>${bom.materiel.type }</td>
							<td>${bom.status}</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>

		<jsp:include page="/pager.jsp"></jsp:include>
	</form>
</body>
</html>